﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IRepository.WareHouse
{
    /// <summary>
    /// 生产领料仓储层接口
    /// </summary>
    public interface IOrderProductPickRepository
    {
        /// <summary>
        /// 更新生产领料
        /// </summary>
        /// <param name="model">生产领料模型</param>
        /// <param name="list">生产领料明细模型</param>
        /// <returns></returns>
        public Task<bool> UpdateAsync(OrderProductPick model, List<OrderProductPickItem> list);
        /// <summary>
        /// 新增生产领料
        /// </summary>
        /// <param name="model">生产领料模型</param>
        /// <param name="list">生产领料明细模型</param>
        /// <returns></returns>
        public Task<bool> AddAsync(OrderProductPick model, List<OrderProductPickItem> list);
        /// <summary>
        /// 根据编号批量删除生产领料信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Task<bool> DeleteAsync(int[] Ids);
        /// <summary>
        /// 根据编号删除指定生产领料信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Task<bool> DeleteAsync(int Id);
    }
}
